<?php
	class Factory
	{	
		
		public static function M($model_name)
		{	
			static $model_list = array();
			if(!isset($model_list[$model_name]))
			{
				
				$model_list[$model_name]=new $model_name;
				// echo '<pre>';
				// print_r($model_list);
			}
			return $model_list[$model_name];
		} 
	}